﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lg.Core.Form.Types
{
    public class Link : BaseType, IType
    {
        public void Verify()
        {
            if (this.IsRender)
            {
                if (Required)
                {
                    Validate.Required(Value, $"字段:{Title},不可为空！");
                }
                Validate.Link(Value);
            }

        }

        public void GetSaveDbValue(Dictionary<string, dynamic> formData, string inputValue)
        {
            formData.Add(Name, inputValue);
        }
    }
}
